package com.liuyi.usercenterservice.entity.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author liuyi
 * @since 2024-03-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class User implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.NONE)
    private Long id;

    /**
     * 昵称
     */
    private String username;

    /**
     * 登录账户
     */
    private String userAccount;

    /**
     * 头像
     */
    private String avatarUrl;

    private Integer gender;

    private String userPassword;

    private String phone;

    private String email;

    /**
     * 0 正常
     */
    private Integer userStatus;

    private Date createTime;

    private Date updateTime;

    /**
     * 0  1
     */
    @TableLogic
    private Integer isDelete;

    /**
     * 0 普通用户  1 管理员
     */
    private Integer userRole;
    /**
     * 标签
     */
    private String tags;
    /**
     * 个人简介
     */
    private String profile;
    /**
     * 最近登录时间
     */
    private Date loginTime;


}
